import { IsNotEmpty, IsString, IsEmail } from 'class-validator';

export class CreateFamilyDto {
  id?: number;
  @IsNotEmpty({ message: '姓名不能为空' })
  @IsString()
  name: string;

  @IsNotEmpty({ message: '邮件不可为空' })
  @IsString()
  email: string;
} 